# Here are the Redboot commands for flashing Xagyl Osprey with OpenWRT
# 
as well as instructions below for entering an Endome license key. 
# 
There are some other potentially useful console commands at the bottom.
# 
09/23/2010 Endome
# Nathan Figueroa 

# COMPLETE FLASH, USE THIS LINE DOWN

fis init 
# FORMATS FLASH


ip_address -h <host IP address> -l <desired ip address for Osprey>


# Load and flash lzma

load -r -b %{FREEMEMLO} openwrt-atheros-vmlinux.lzma

fis create -r 0x80041000 -e 0x80041000 -f 0xA8300000 xagyl.lzma


# Load and flash file system

load -r -b %{FREEMEMLO} openwrt-atheros-root.squashfs

fis create -r 0x80041000 -f 0xA8030000 -e 0x00000000 rootfs


# Load into ram and execute

fis load -l xagyl.lzma

exec


# If the board is connected to a network, you should be able to access
#
 the LuCI web interface by pointing a browser to the IP address

# Enter Endome Key in Network > Wifi > Serial Key and make sure 

# mode is set to "Polling (Client)"

# Some other helpful commands:


# Once OpenWRT has loaded, this command can be used to change IP

uci set network.lan.ipaddr=<ip address> && uci commit network
/etc/init.d/network restart

# Or enable DHCP with
command udhcpc -i br-lan -b

# Disable wifi
uci set wireless.wifi0.disabled=1; uci commit wireless; wifi


# Enable wifi
uci set wireless.wifi0.disabled=0; uci commit wireless; wifi

fis init 
ip_address -h 192.168.1.3 -l 192.168.1.20
load -r -b %{FREEMEMLO} openwrt-atheros-vmlinux.lzma
fis create -r 0x80041000 -e 0x80041000 -f 0xA8300000 vmlinux.bin.l7
load -r -b %{FREEMEMLO} openwrt-atheros-root.squashfs
fis create -r 0x80041000 -f 0xA8030000 -e 0x00000000 rootfs
fis load -l xagyl.lzma
exec


uci set network.lan.ipaddr=192.168.1.20/24 && uci commit network
 && /etc/init.d/network restart

